<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Send Message</title>

</head>
<body>
    <script type='text/javascript'>
	
		function sendMessage(messageId, message){
			
								
				window.location = "/swimtwoWEB/SendMessageServlet?messageId=" + messageId.value +"message=" + message.value;		
		}
		
	</script>
		<table border="0" cellpadding="1" cellspacing="2" width="100%">
			
			<TBODY>		
			<tr>
				<td align="left" width="10%">Message Id: </td>
				<td align="left" width="100%"><INPUT id="messageId" name="messageId" type="" value=""></td>
			</tr>
			<tr>
				<td align="left" width="10%">Message: </td>
				<td align="left" width="100%"><INPUT id="message" name="message" type="" value=""></td>
			</tr>
			<tr>
				<td align="left" width="0%"></td>
				<td align="left" width="50%"><input type="submit" value="send" onClick="sendMessage(document.getElementById('messageId'),  document.getElementById('message'))"></td>
			</tr>
			</TBODY>
			
		</table>	

</body>
</html>